﻿#pragma once
#include "Linkspyder.h"
#include "Spyder.h"
#include <memory>
enum class SPIDERTYPE
{
    LINK,
    INFO
};
class SimpleSpiderFactory
{
public:
    static std::shared_ptr<Spyder> CreateSpyder(SPIDERTYPE type)
    {
        switch (type) {
        case SPIDERTYPE::LINK: return std::make_shared<Linkspyder>(); break;
        case SPIDERTYPE::INFO: return nullptr; break;
        default: return nullptr;
        }
    }
};